If you use HTML5 you can do this using the placeholder
attribute:
I'd still include the Username and Password text wrapped in
tags for accessibility, but you could always hide them with some CSS like this:
form {
position:relative;
}
label {
position:absolute;
top:-9999px;
}